import { InputQuestion, QuestionBase, TimeQuestion, SelectQuestion, RadioQuestion, TextQuestion, CustomTableQuestion } from '@/components/public-template';
import { TextTable } from '@/components/public-template';
import { TableBase } from '@/components/public-template';
import { regExp } from '@/utils/regExp';

class HomeService {
  // 基础信息
  getQuestions() {
    const questions: QuestionBase<any>[] = [
      new TextQuestion({
        key: 'code',
        label: '单据编号',
        value: null
      }),
      new TextQuestion({
        key: 'creator',
        label: '创建人',
        value: null
      }),
      new TextQuestion({
        key: 'deptName',
        label: '创建部门',
        value: null
      }),
      new TextQuestion({
        key: 'remindDatetime',
        label: '到期提醒时间',
        value: null
      }),
      new TextQuestion({
        key: 'createdTime',
        label: '创建时间',
        value: null
      })
    ];
    return questions;
  }
  getQuestionsType() {
    // 申请类型
    const questions: QuestionBase<any>[] = [
      new SelectQuestion({
        key: 'status',
        label: '申请类型',
        value: '新建',
        type: 'dictionary',
        state: {
          filterName: 'DMS_PUBILC_FILE_APPLY_IS_TYPE'
        }
      })
    ];
    return questions;
  }
}

export default new HomeService();
